package com.xx.dao;

import com.xx.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    //查询所有
    public List<User> getAll();
    //根据账号，获取用户信息
    public User getByAccount(String account);
    //删除
    public int delete(@Param("id") Integer id);
    //添加
    public int add(User user);
    //修改
    public int update(User user);
    //根据id查询
    public User getById(@Param("id") Integer id);
}
